import { getAllServer } from "../../apis/sever";

export const allServer = () => {
    return async (dispatch: any) => {
        const res = await getAllServer();
        console.log('res', res)
        dispatch({ type: 'GET_SERVER', payload: res });
    }
}